-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Update some error types to more appropriate variants #15030
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15030 +/- ##
==========================================
+ Coverage 81.43% 81.44% +0.01%
==========================================
Files 1413 1413
Lines 186183 186183
Branches 2776 2776
==========================================
+ Hits 151615 151644 +29
+ Misses 34048 34019 -29
Partials 520 520 ☔ View full report in Codecov by Sentry. |
8fc9cde
to
e737ccb
Compare
SchemaError
Is this one still planned @stinodego ? |
Yes. I was planning to expand this PR a bit with some more error type fixes though. But it can also be merged like this and I'll pick up other error improvements separately. |
e737ccb
to
40219f8
Compare
40219f8
to
47c8d92
Compare
CodSpeed Performance ReportMerging #15030 will improve performances by 16.74%Comparing Summary
Benchmarks breakdown
|
Going to go ahead with this one. If I run into other incorrect error types, I'll open a new PR. |
Closes #16440
Changes
SchemaError
. We often use aComputeError
instead, which is not as informative.Other PRs that update one or more error types:
ComputeError
toInvalidOperationError
#16895, feat!: Restrict casting for temporal data types #14142SQLInterface
andSQLSyntax
errors #16635ModuleUpgradeRequired
andPolarsPanicError
error, removeInvalidAssert
error #17033Example
Before
After
>>> s1 + s2 Traceback (most recent call last): ... polars.exceptions.SchemaError: failed to determine supertype of datetime[μs] and time